package com.sgzn.sgpay.service.tcp.impl;

import com.sgzn.sgpay.model.response.SgsResultResponse;
import com.sgzn.sgpay.service.tcp.api.TcpRecoveryLeaveFactorySetupService;
import com.sgzn.sgpay.service.tcp.model.terminal.request.TcpRecoveryLeaveFactorySetupRequest;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * 恢复出厂设置 服务接口实现类
 * @author huangsenguang
 * @version Id: TcpRecoveryLeaveFactorySetupServiceImpl.java, v 0.1 2018/7/23 10:41 huangsenguang Exp $$
 */
@Service
@Slf4j
public class TcpRecoveryLeaveFactorySetupServiceImpl extends TcpBaseTemplate implements TcpRecoveryLeaveFactorySetupService {
    @Override
    public SgsResultResponse<String> invoke(TcpRecoveryLeaveFactorySetupRequest request) {
        return super.execute(request.getDeviceId(), request.toString());
    }
}

